<script type="text/javascript">

      //监听a标题 组织默认操作、 判断路径是否包含theme_id 拼接
      $(".back-box").hide()
      
       //当前路由
      window.oemcart_current_route_handle = '{{ routes.current_route_handle | default : "" }}';

      const messageParams = {}

      {% if payment %}
        messageParams['payment'] = {{ payment }};
      {% endif %}

      {% if comments %}
        messageParams['comments'] = {{ comments | json }};
      {% endif %}


      {% if collections %}
        messageParams['collections'] = {{ collections | json }};
      {% endif %}


      moi.setPageStorage("messageParams",messageParams )
      

      //商品详情
      {% if template == 'product_detail' %}
        moi.setPageStorage('page_id', {{product.id | default : 0}});
      {% endif %}


      

      //专辑详情
      {% if template == 'collection_detail' %}
        moi.setPageStorage('page_id', {{collection.id | default : 0}});
      {% endif %}
</script>
<script type="text/javascript" src="{{ 'message.js' | public_asset_abs_url }}"></script>